package com.code.day08;

public class Day08Method {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        //传递的是a和b的值,不是变量本身
        method(a,b);
        System.out.println(a);//10
        System.out.println(b);//20
    }

    private static void method(int a, int b) {
        a+=10;
        b+=20;
        System.out.println(a);//20
        System.out.println(b);//40
    }
}
